<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>管理员注册</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/adminregister.css') }}">
</head>
<body>
    <div class="register-container">
        <h1>管理员注册</h1>
        <form action="{{ url_for('admin_register') }}" method="post">
            <input type="text" name="username" placeholder="用户名" required>
            <input type="password" name="password" placeholder="密码" required>
            <input type="text" name="admin_key" placeholder="管理员密钥" required>
            <button type="submit">注册</button>
        </form>
        {% if error %}
            <p class="error">{{ error }}</p>
        {% endif %}
        <div class="login-link">
            <p>已有账号？ <a href="{{ url_for('admin_login') }}">登录</a></p>
        </div>
    </div>
</body>
</html>
